Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow colored_noise to output normalized series and use it to generat… #543

Merged
merged 1 commit into from
May 15, 2024

Conversation

CommonClimate
Copy link
Collaborator

I noticed a bug this morning: the CN (colored noise) option of SurrogateSeries had variance much larger than the series it is meant to emulate. This is because tsmodel.colored_noise() did not previously allow to scale the output to a given value. This is now implemented, and used in SurrogateSeries.from_series().

All tests pass on my machine, including a new one designed to test the scaling capability

…e SurrogateSeries that match the variance of the original series

tests pass
@CommonClimate CommonClimate requested a review from alexkjames May 15, 2024 02:31
@alexkjames alexkjames merged commit e2715c3 into master May 15, 2024
1 check passed
@alexkjames alexkjames deleted the CN-scaling branch May 15, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants